package com.offcn.controller;

import org.springframework.web.bind.annotation.*;

@RestController
public class DemoController {

    @RequestMapping(value = {"/demo/{id}"},method = RequestMethod.GET)
    public String demo(@PathVariable Integer id) {
        String msg = "进入控制层，接收参数：" + id;
        System.out.println(msg);
        return msg;
    }

    @GetMapping("/demoInter")
    public String demoInter() {
        return "ok";
    }
}
